<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>测试</title>
    <style>

    </style>
</head>
<body>
   <p>
    DASDASDASDASDASAGadasjfhasjkfbasjkdhasjkdbaskjdbasbdhjasbfhasdbjasjfa-flip-horizontal
   </p>
   <script>
    document.addEventListener('copy',(e)=>{
        e.preventDefault();
        e.clipboardData.setData('test/plain','不能复制,打钱');
        alert('不能复制，打钱')
        console.log("正在复制");
    })
   </script>
</body>
</html>